package com.springcloud.servicefeign.controller;

import com.springcloud.servicefeign.service.SchedualServiceHi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author chenkuan
 * @version v1.0
 * @desc
 * @date 2019/4/25 025 14:08
 */
@RestController
public class HiController {

	//编译器报错，无视。 因为这个Bean是在程序启动的时候注入的，编译器感知不到，所以报错
	@Autowired
	private SchedualServiceHi schedualServiceHi;

	@GetMapping("/hi")
	public String sayHi(String name) {
		return schedualServiceHi.sayHiFromClientOne(name);
	}

}
